package com.china08.yxyapi.entity.db.continuedu;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntity;

/**
 * 师训课程
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_continuedu_lesson", catalog = "yxy_continuedu")
public class YxyContinueduLesson extends BaseEntity {

    @Column(nullable = false, columnDefinition = "varchar(256) comment '课程名称' ")
    private String name;// 课程名称

    @Column(columnDefinition = "TEXT comment '简介' ", nullable = false)
    private String summary;// 简介

    @Column(columnDefinition = "varchar(128) comment '封面图片地址' ", nullable = false)
    private String cover;// 封面

    @Column(columnDefinition = "int comment '总课时' ")
    private Integer count;// 总课时

    @Column(columnDefinition = "int comment '总时长' ")
    private Integer duration;// 总时长

    @Column(columnDefinition = "int comment '观看次数' ")
    private Integer pv;// 观看次数

    @Column(columnDefinition = "int comment '观看考人数' ")
    private Integer vv;// 观看人数

    @Column(columnDefinition = "int default 1 comment '状态0-删除,1-正常' ", nullable = false)
    private Integer status;

    @Column(name = "is_visible", columnDefinition = "int default 1 comment '0-草稿,1-上架,2-下架' ", nullable = false)
    private Integer isVisible = 0;

    @Column(columnDefinition = "varchar(128) comment '下架原因' ")
    private String rejectReason;// 下架原因

    @Column(columnDefinition = "varchar(32) comment '创建人id' ")
    private String userId;

    @Column(columnDefinition = "varchar(32) comment '创建人学校id(教育局)' ", nullable = false)
    private String schoolId;// 创建人学校id(教育局)

    @Column(columnDefinition = "varchar(6) comment '省代码' ", nullable = false)
    private String areaCodeProvince;

    @Column(columnDefinition = "varchar(6) comment '市代码' ", nullable = false)
    private String areaCodeCity;

    @Column(columnDefinition = "varchar(6) comment '区县代码' ", nullable = false)
    private String areaCodeDistrict;

    @Column(columnDefinition = "DateTime comment '最后一次修改的时间' ")
    private Date lastUpDate;

    // 上架时间
    @Column(name = "up_date")
    private Date upDate;

    // 下架时间
    @Column(name = "down_date")
    private Date downDate;

    @Column(name = "author", nullable = false)
    private String author;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    public Integer getPv() {
        return pv;
    }

    public void setPv(Integer pv) {
        this.pv = pv;
    }

    public Integer getVv() {
        return vv;
    }

    public void setVv(Integer vv) {
        this.vv = vv;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRejectReason() {
        return rejectReason;
    }

    public void setRejectReason(String rejectReason) {
        this.rejectReason = rejectReason;
    }

    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

    public String getAreaCodeProvince() {
        return areaCodeProvince;
    }

    public void setAreaCodeProvince(String areaCodeProvince) {
        this.areaCodeProvince = areaCodeProvince;
    }

    public String getAreaCodeCity() {
        return areaCodeCity;
    }

    public void setAreaCodeCity(String areaCodeCity) {
        this.areaCodeCity = areaCodeCity;
    }

    public String getAreaCodeDistrict() {
        return areaCodeDistrict;
    }

    public void setAreaCodeDistrict(String areaCodeDistrict) {
        this.areaCodeDistrict = areaCodeDistrict;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Integer getIsVisible() {
        return isVisible;
    }

    public void setIsVisible(Integer isVisible) {
        this.isVisible = isVisible;
    }

    public Date getLastUpDate() {
        return lastUpDate;
    }

    public void setLastUpDate(Date lastUpDate) {
        this.lastUpDate = lastUpDate;
    }

    public Date getUpDate() {
        return upDate;
    }

    public void setUpDate(Date upDate) {
        this.upDate = upDate;
    }

    public Date getDownDate() {
        return downDate;
    }

    public void setDownDate(Date downDate) {
        this.downDate = downDate;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

}
